package com.zhz.mall.portal.dto;

import io.swagger.annotations.ApiModel;
import lombok.*;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 更新商品数量
 *
 * @author zhouhengzhe
 * @date 2023/2/4
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("更新商品数量")
public class CartUpdateQuantityDTO {

    @NotNull(message = "商品ID不能为空")
    private Long id;
    @NotNull(message = "更新的商品数量不能为空")
    private Integer quantity;
}
